<%--
  Created by IntelliJ IDEA.
  User: ttq
  Date: 13-6-9
  Time: 上午9:46
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" pageEncoding="UTF-8" %>
<jsp:directive.page import="sun.misc.BASE64Encoder"></jsp:directive.page>
<jsp:directive.page import="java.io.InputStream"></jsp:directive.page>
<jsp:directive.page import="java.io.File"></jsp:directive.page>
<%
    File file = new File(this.getServletContext().getRealPath("test.gif"));
    byte[] binary = new byte[(int) file.length()];
%>
<html>
<head>
    <title></title>
</head>
<body>

</body>
</html>